package com.quick.develop.flowable.domain.dto.instance;

import com.quick.develop.flowable.domain.BpmBaseDO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author junyuan.liu
 * @description:
 * @date 2022/8/28 9:41
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("流程实例-返回参数")
public class BpmProcessInstanceDTO extends BpmBaseDO {
    private static final long serialVersionUID = -4325743650952810039L;

    @ApiModelProperty(value = "流程实例的编号", example = "1024")
    private String id;

    @ApiModelProperty(value = "父流程实例ID")
    private String superProcessInstanceId;

    @ApiModelProperty(value = "流程名称")
    private String name;

    @ApiModelProperty(value = "流程名称")
    private String startUserId;

    @ApiModelProperty(value = "流程分类")
    private String category;

    @ApiModelProperty(value = "流程实例的状态")
    private Integer status;

    @ApiModelProperty(value = "流程实例的结果", notes = "参见 bpm_task_btn", example = "2")
    private Integer result;

    @ApiModelProperty(value = "提交时间")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    @ApiModelProperty(value = "耗时")
    private long durationInMillis;
}
